package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 检查情况记录
 * @Author: jeecg-boot
 * @Date:   2024-05-17
 * @Version: V1.0
 */
@Schema(description="检查情况记录")
@Data
@TableName("tb_base_check_record")
public class TbBaseCheckRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**企业编号*/
	@Excel(name = "企业编号", width = 15)
    @Schema(description = "企业编号")
    private String companyCode;
	/**危险源编码*/
	@Excel(name = "危险源编码", width = 15)
    @Schema(description = "危险源编码")
    private String hazardCode;
	/**所属任务*/
	@Excel(name = "所属任务", width = 15, dictTable = "tb_base_check_task", dicText = "task_name", dicCode = "id")
    @Dict(dictTable = "tb_base_check_task", dicText = "task_name", dicCode = "id")
    @Schema(description = "所属任务")
    private String taskId;
	/**检查类型*/
	@Excel(name = "检查类型", width = 15, dicCode = "baseCheckType")
    @Dict(dicCode = "baseCheckType")
    @Schema(description = "检查类型")
    private String checkType;
	/**检查日期*/
	@Excel(name = "检查日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "检查日期")
    private Date checkDate;
	/**是否停产整顿*/
	@Excel(name = "是否停产整顿", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "是否停产整顿")
    private String resultStatus;
	/**计划id*/
    @Schema(description = "计划id")
    private String planId;

    /*业务后加的字段*/
    /**检查序号*/
    @Excel(name = "检查项id", width = 15)
    @Schema(description = "检查项id")
    private String checkItemId;
    /**检查序号*/
    @Excel(name = "检查序号", width = 15)
    @Schema(description = "检查序号")
    private String checkName;
    /**检查内容*/
    @Excel(name = "检查项目", width = 15)
    @Schema(description = "检查项目")
    private String checkContent;
    /**检查方式*/
    @Excel(name = "检查方式", width = 15)
    @Schema(description = "检查方式")
    private String checkWay;
    /**检查依据*/
    @Excel(name = "检查依据", width = 15)
    @Schema(description = "检查依据")
    private String checkBasis;
    /**适用场合*/
    @Excel(name = "适用场合", width = 15)
    @Schema(description = "适用场合")
    private String applicablePlace;
    /**检查人*/
    @Excel(name = "检查人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "检查人")
    private String examiner;

    /**是否符合*/
    @Excel(name = "是否符合", width = 15, dicCode = "isConforms")
    @Dict(dicCode = "isConforms")
    @Schema(description = "是否符合")
    private String isConforms;

    /**是否删除*/
    @Excel(name = "是否删除", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "是否删除")
    private String deleted;

    /**租户ID*/
    private Integer tenantId;

}
